package com.cysyz.mylib.stringconverter.impl;


import com.cysyz.mylib.stringconverter.StringConverter;

/**
 * Created by emall on 2014/8/4.
 */
public class Str2DoubleConverter implements StringConverter<Double> {
    @Override
    public boolean support(Class clazz) {
        if (clazz == Double.class) {
            return true;
        }
        return false;
    }

    @Override
    public Double convert(String val) {
        return Double.parseDouble(val);
    }
}
